﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_Product_Update.ascx.cs"
    Inherits="Stationery.UC.UC_Product_Update" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<table width="100%" cellspacing="5">
    <tr>
        <td width="120px">
            Mã sản phẩm:
        </td>
        <td width="300px">
            <dxe:ASPxTextBox ID="ASPxTextBoxCode" runat="server" Width="100px">
            </dxe:ASPxTextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ASPxTextBoxCode"
                ErrorMessage="Nhập mã sản phẩm"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Tên sản phẩm:
        </td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxName" runat="server" Width="300px" AutoResizeWithContainer="True">
            </dxe:ASPxTextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ASPxTextBoxName"
                ErrorMessage="Nhập tên sản phẩm"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Giá tiền:
        </td>
        <td>
            <dxe:ASPxSpinEdit ID="ASPxSpinEditPrice" runat="server" Height="21px" Number="0"
                Width="100px" />
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            Giảm giá (%):</td>
        <td>
            <dxe:ASPxSpinEdit ID="ASPxSpinEditSale" runat="server" Height="21px" Number="0"
                Width="100px" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Tên gọi khác:</td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxOtherName" runat="server" Width="300px" 
                AutoResizeWithContainer="True">
            </dxe:ASPxTextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Nguồn gốc:</td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxOrigin" runat="server" Width="300px" 
                AutoResizeWithContainer="True">
            </dxe:ASPxTextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Thời gian bảo quản:</td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxStorageTime" runat="server" Width="150px" 
                AutoResizeWithContainer="True">
            </dxe:ASPxTextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Trọng lượng (gam)</td>
        <td>
            <dxe:ASPxSpinEdit ID="ASPxSpinEditWeight" runat="server" Height="21px" Number="0"
                Width="100px" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Tình trạng</td>
        <td>
            <dxe:ASPxComboBox ID="ASPxComboBoxStatStock" runat="server" ValueField="STAT_STOCK" 
                ValueType="System.String" Width="160px">
                <Items>
                    <dxe:ListEditItem Text="Còn hàng" Value="I" />
                    <dxe:ListEditItem Text="Hết hàng" Value="O" />
                    <dxe:ListEditItem Text="Sắp có" Value="C" />
                </Items>
            </dxe:ASPxComboBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Mô tả:
        </td>
        <td>
            <dxe:ASPxMemo ID="ASPxMemoDescription" runat="server" Height="71px" Width="300px"
                Visible="True" AutoResizeWithContainer="True">
            </dxe:ASPxMemo>
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            Nhóm sản phẩm:</td>
        <td>
            <dxe:ASPxComboBox ID="ASPxComboBoxCategory" runat="server" Width="300px" 
                TextField="NAME" ValueField="ID" ValueType="System.Int32">
            </dxe:ASPxComboBox>
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td valign="top">
            Số thứ tự:</td>
        <td>
            <dxe:ASPxSpinEdit ID="ASPxSpinEditSequence" runat="server" Height="21px" Number="0"
                Width="100px" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td valign="top">
            Hình ảnh:
        </td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxURL" runat="server" Width="300px" 
                AutoResizeWithContainer="True">
            </dxe:ASPxTextBox>
        </td>
        <td>
            <dxe:ASPxCheckBox ID="ASPxCheckBoxURL" runat="server" Checked="True" 
                oncheckedchanged="ASPxCheckBoxURL_CheckedChanged" 
                Text="Sử dụng link từ website khác" AutoPostBack="True">
            </dxe:ASPxCheckBox>
        </td>
    </tr>
    <tr id="id_upload" runat="server">
        <td valign="top">
            &nbsp;</td>
        <td>
            <dxuc:ASPxUploadControl ID="ASPxUploadControlImage" runat="server"
                Width="300px">
                <CancelButton Text="Hủy">
                </CancelButton>
                
            </dxuc:ASPxUploadControl>
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td valign="top">
            &nbsp;</td>
        <td>
            <dxe:ASPxCheckBox ID="ASPxCheckBoxDisplay" runat="server" Checked="True" 
                Text="Hiển thị sản phẩm">
            </dxe:ASPxCheckBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            <table>
                <tr>
                    <td>
                        <dxe:ASPxButton ID="ASPxButtonSave" runat="server" Text="Lưu" Width="60px" OnClick="ASPxButtonSave_Click">
                        </dxe:ASPxButton>
                    </td>
                    <td>
                        <dxe:ASPxButton ID="ASPxButtonCancel" runat="server" Text="Hủy" Width="60px" 
                            onclick="ASPxButtonCancel_Click" CausesValidation="False">
                        </dxe:ASPxButton>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
</table>
<IFRAME ID="KeepAliveFrame" src="KeepSessionAlive.aspx" frameBorder="0" width="0" height="0" runat="server"></IFRAME>